import request from '@/utils/request'

// 查询供应商列表列表for app,审核过的数据
export function listSupplieruser(query) {
  return request({
    url: '/supplier/supplieruser/list',
    method: 'get',
    params: query
  })
}

//listForAuth
export function listSupplieruserForAuth(query) {
  return request({
    url: '/supplier/supplieruser/listForAuth',
    method: 'get',
    params: query
  })
}


// 查询供应商列表详细
export function getSupplieruser(id) {
  return request({
    url: '/supplier/supplieruser/' + id,
    method: 'get'
  })
}

export function auditSupplier(data) {
  return request({
    url: '/supplier/supplieruser/audit',
    method: 'post',
    data: data
  })
}

// 新增供应商列表
export function addSupplieruser(data) {
  return request({
    url: '/supplier/supplieruser',
    method: 'post',
    data: data
  })
}

// 修改供应商列表
export function updateSupplieruser(data) {
  return request({
    url: '/supplier/supplieruser',
    method: 'put',
    data: data
  })
}

// 删除供应商列表
export function delSupplieruser(id) {
  return request({
    url: '/supplier/supplieruser/' + id,
    method: 'delete'
  })
}
